package com.junsi.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.junsi.bean.Operate;
import com.sun.org.apache.xml.internal.resolver.helpers.PublicId;

public interface OperateMapper extends GenericMapper<Operate>{

	//模糊按照名字查询
	public List<Operate> findByName(@Param("name") String name,@Param("opid") Integer opid,@Param("leixing") String leixing,@Param("id") String[] id,@Param("endIndex") Integer endIndex,@Param("startIndex") Integer startIndex);
		
	//客户信息分页查询
	public List<Operate> pageFind(@Param("id") String[] id,@Param("endIndex") Integer endIndex,@Param("startIndex") Integer startIndex);
	    
	//查询有多少条记录
	public Integer findCount(@Param("id") String[] id);
	
	/**
	 * 后台按条件查询
	 * @param name
	 * @param endIndex
	 * @param startIndex
	 * @return
	 */
	public List<Operate> findByhoutaiName(@Param("name") String name,@Param("endIndex") Integer endIndex,@Param("startIndex") Integer startIndex);
	
	public int findCountCondition(String condition);
	
	public List<Operate> findByhoutaiNameCondition(String condition,Integer beginIndex, Integer endIndex);
	
	public int findCountConditionTwo(String condition);
	
	public List<Operate> findByNameTwo(String condition,Integer beginIndex, Integer endIndex);
}
